﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace ExecutionContract
{
    public interface IExecutionContractWriter
    {
        /// <summary>
        /// This method writes xml code into the root element. 
        /// </summary>
        /// <param name="ListToWrite">List of ExecutionContracts that should be written into the xml.</param>
        void Write(List<ExecutionContract> ListToWrite);

        /// <summary>
        /// This method writes xml code into the root element. 
        /// </summary>
        /// <param name="ListToWrite">List of ExecutionContracts that should be written into the xml.</param>
        /// <param name="root">root element that should contain the xml code</param>
        void Write(List<ExecutionContract> ListToWrite, XmlElement root);

    }
}
